package bk;

import ca.tta.bba.hha.R;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.general.box.knowledge.KnowledgeMainActivity;
import com.gyf.immersionbar.ImmersionBar;
import com.setting.box.CommonSettingActivity;
import com.text.encypt.TextEncryptionActivity;
import com.third.func.web.WebBrowserActivity;

public class DE extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
        int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
        for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
            int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
            for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                    minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                }
            }
            if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
            }
        }
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_my_main);
        ImmersionBar.with(this).fitsSystemWindows(false).transparentStatusBar().autoDarkModeEnable(true).init();
        initListener();
    }

    private void initListener() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        findViewById(R.id.ll_setting).setOnClickListener(v -> {
            Intent intent = new Intent(this, CommonSettingActivity.class);
            startActivity(intent);
        });
        findViewById(R.id.ll_eat_what).setOnClickListener(v -> {
            Intent intent = new Intent(this, WebBrowserActivity.class);
            intent.putExtra("网址", "file:///android_asset/tools/jintianchishenme/index.html");
            startActivity(intent);
        });
        findViewById(R.id.ll_music).setOnClickListener(v -> {
            Intent intent = new Intent(this, WebBrowserActivity.class);
            intent.putExtra("网址", "file:///android_asset/games/dianjita/index.html");
            startActivity(intent);
        });
        findViewById(R.id.ll_traffic).setOnClickListener(v -> {
            Intent intent = new Intent(this, WebBrowserActivity.class);
            intent.putExtra("网址", "file:///android_asset/tools/jiaotongbiaozhi/index.html");
            startActivity(intent);
        });
        findViewById(R.id.ll_team).setOnClickListener(v -> {
            Intent intent = new Intent(this, KnowledgeMainActivity.class);
            intent.putExtra(KnowledgeMainActivity.TYPE, KnowledgeMainActivity.TYPE_TEAM);
            startActivity(intent);
        });
        findViewById(R.id.ll_text).setOnClickListener(v -> {
            Intent intent = new Intent(this, TextEncryptionActivity.class);
            startActivity(intent);
        });
    }
}
